package yang.itcode.constant;

public class ErrorConstant {
    // 系统错误
    public static final int SYSTEM_EXCEPTION_CODE = 500;
    public static final String SYSTEM_EXCEPTION_MESSAGE = "系统内部错误";
    // 登录错误
    public static final int LOGIN_EXCEPTION_CODE = 601;
    public static final String LOGIN_EXCEPTION_MESSAGE = "用户名不存在或密码错误";
    public static final String LOGIN_USERNAME_NULL_MESSAGE = "用户名不能为空";
    public static final String LOGIN_PASSWORD_NULL_MESSAGE = "密码不能为空";
    // 用户不存在错误
    public static final int USER_NOT_EXIST_EXCEPTION_CODE = 602;
    public static final String USER_NOT_EXIST_EXCEPTION_MESSAGE = "用户不存在";
    // 分类错误
    public static final int CATEGORY_PARAM_EXCEPTION_CODE = 611;
    public static final String CATEGORY_PARAM_EXCEPTION_MESSAGE = "未填写必填参数";
    public static final int CATEGORY_ADD_EXCEPTION_CODE = 612;
    public static final String CATEGORY_ADD_EXCEPTION_MESSAGE = "分类添加失败";
    public static final int CATEGORY_UPDATE_EXCEPTION_CODE = 613;
    public static final String CATEGORY_UPDATE_EXCEPTION_MESSAGE = "分类修改失败";
    public static final int CATEGORY_DELETE_EXCEPTION_CODE = 614;
    public static final String CATEGORY_DELETE_EXCEPTION_MESSAGE = "分类删除失败";
    // 商品错误
    public static final int PRODUCT_PARAM_EXCEPTION_CODE = 621;
    public static final String PRODUCT_PARAM_EXCEPTION_MESSAGE = "未填写必填参数";
    public static final int PRODUCT_ADD_EXCEPTION_CODE = 622;
    public static final String PRODUCT_ADD_EXCEPTION_MESSAGE = "商品添加失败";
    public static final int PRODUCT_UPDATE_EXCEPTION_CODE = 623;
    public static final String PRODUCT_UPDATE_EXCEPTION_MESSAGE = "商品修改失败";
    public static final int PRODUCT_DELETE_EXCEPTION_CODE = 624;
    public static final String PRODUCT_DELETE_EXCEPTION_MESSAGE = "商品删除失败";
    public static final int PRODUCT_NOT_EXIST_EXCEPTION_CODE = 625;
    public static final String PRODUCT_NOT_EXIST_EXCEPTION_MESSAGE = "商品不存在";
    // 供应商错误
    public static final int SUPPLIER_PARAM_EXCEPTION_CODE = 631;
    public static final String SUPPLIER_PARAM_EXCEPTION_MESSAGE = "未填写必填参数";
    public static final int SUPPLIER_ADD_EXCEPTION_CODE = 632;
    public static final String SUPPLIER_ADD_EXCEPTION_MESSAGE = "供应商添加失败";
    public static final int SUPPLIER_UPDATE_EXCEPTION_CODE = 633;
    public static final String SUPPLIER_UPDATE_EXCEPTION_MESSAGE = "供应商修改失败";
    public static final int SUPPLIER_DELETE_EXCEPTION_CODE = 634;
    public static final String SUPPLIER_DELETE_EXCEPTION_MESSAGE = "供应商删除失败";
    public static final int SUPPLIER_NOT_EXIST_EXCEPTION_CODE = 635;
    public static final String SUPPLIER_NOT_EXIST_EXCEPTION_MESSAGE = "供应商不存在";
    // 客户错误
    public static final int CUSTOMER_PARAM_EXCEPTION_CODE = 641;
    public static final String CUSTOMER_PARAM_EXCEPTION_MESSAGE = "未填写必填参数";
    public static final int CUSTOMER_ADD_EXCEPTION_CODE = 642;
    public static final String CUSTOMER_ADD_EXCEPTION_MESSAGE = "客户添加失败";
    public static final int CUSTOMER_UPDATE_EXCEPTION_CODE = 643;
    public static final String CUSTOMER_UPDATE_EXCEPTION_MESSAGE = "客户修改失败";
    public static final int CUSTOMER_DELETE_EXCEPTION_CODE = 644;
    public static final String CUSTOMER_DELETE_EXCEPTION_MESSAGE = "客户删除失败";
    public static final int CUSTOMER_NOT_EXIST_EXCEPTION_CODE = 645;
    public static final String CUSTOMER_NOT_EXIST_EXCEPTION_MESSAGE = "客户不存在";
    // 采购单错误
    public static final int PURCHASE_ORDER_PARAM_EXCEPTION_CODE = 651;
    public static final String PURCHASE_ORDER_PARAM_EXCEPTION_MESSAGE = "采购单缺少必填参数";
    public static final int PURCHASE_ORDER_ADD_EXCEPTION_CODE = 652;
    public static final String PURCHASE_ORDER_ADD_EXCEPTION_MESSAGE = "采购单创建失败";
    public static final int PURCHASE_ORDER_UPDATE_EXCEPTION_CODE = 653;
    public static final String PURCHASE_ORDER_UPDATE_EXCEPTION_MESSAGE = "采购单修改失败";
    public static final int PURCHASE_ORDER_DELETE_EXCEPTION_CODE = 654;
    public static final String PURCHASE_ORDER_DELETE_EXCEPTION_MESSAGE = "采购单删除失败";
    public static final int PURCHASE_ORDER_NOT_EXIST_EXCEPTION_CODE = 655;
    public static final String PURCHASE_ORDER_NOT_EXIST_EXCEPTION_MESSAGE = "采购单不存在";
    public static final int PURCHASE_PRICE_EXCEPTION_CODE = 656;
    public static final String PURCHASE_PRICE_EXCEPTION_MESSAGE = "采购价格有误";
    public static final int PURCHASE_ORDER_RED_EXCEPTION_CODE = 657;
    public static final String PURCHASE_ORDER_RED_EXCEPTION_MESSAGE = "采购单红冲失败";
    // 销售单错误
    public static final int SALES_ORDER_PARAM_EXCEPTION_CODE = 671;
    public static final String SALES_ORDER_PARAM_EXCEPTION_MESSAGE = "销售单缺少必填参数";
    public static final int SALES_ORDER_ADD_EXCEPTION_CODE = 672;
    public static final String SALES_ORDER_ADD_EXCEPTION_MESSAGE = "销售单创建失败";
    public static final int SALES_ORDER_UPDATE_EXCEPTION_CODE = 673;
    public static final String SALES_ORDER_UPDATE_EXCEPTION_MESSAGE = "销售单修改失败";
    public static final int SALES_ORDER_DELETE_EXCEPTION_CODE = 674;
    public static final String SALES_ORDER_DELETE_EXCEPTION_MESSAGE = "销售单删除失败";
    public static final int SALES_ORDER_NOT_EXIST_EXCEPTION_CODE = 675;
    public static final String SALES_ORDER_NOT_EXIST_EXCEPTION_MESSAGE = "销售单不存在";
    public static final int SALES_PRICE_EXCEPTION_CODE = 676;
    public static final String SALES_PRICE_EXCEPTION_MESSAGE = "销售价格有误";
    public static final int SALES_PRODUCT_INVENTORY_SHORTAGE_CODE = 677;
    public static final String SALES_PRODUCT_INVENTORY_SHORTAGE_MESSAGE = "商品库存不足";
    public static final int SALES_ORDER_RED_EXCEPTION_CODE = 678;
    public static final String SALES_ORDER_RED_EXCEPTION_MESSAGE = "销售单红冲失败";
    // 库存错误
    public static final int INVENTORY_DETAIL_PARAM_EXCEPTION_CODE = 681;
    public static final String INVENTORY_DETAIL_PARAM_EXCEPTION_MESSAGE = "库存调整缺少必填参数";
    public static final String INVENTORY_DETAIL_NOT_ENOUGH_EXCEPTION_MESSAGE = "库存不足，无法完成报损操作";
    public static final int INVENTORY_DETAIL_ADD_EXCEPTION_CODE = 682;
    public static final String INVENTORY_DETAIL_ADD_EXCEPTION_MESSAGE = "库存调整失败";
    // 其他成本错误
    public static final int OTHER_COST_PARAM_EXCEPTION_CODE = 691;
    public static final String OTHER_COST_PARAM_EXCEPTION_MESSAGE = "其他成本缺少必填参数";
    public static final int OTHER_COST_ADD_EXCEPTION_CODE = 692;
    public static final String OTHER_COST_ADD_EXCEPTION_MESSAGE = "其他成本添加失败";
    public static final int OTHER_COST_UPDATE_EXCEPTION_CODE = 693;
    public static final String OTHER_COST_UPDATE_EXCEPTION_MESSAGE = "其他成本修改失败";
    public static final int OTHER_COST_DELETE_EXCEPTION_CODE = 694;
    public static final String OTHER_COST_DELETE_EXCEPTION_MESSAGE = "其他成本删除失败";
    public static final int OTHER_COST_NOT_EXIST_EXCEPTION_CODE = 695;
    public static final String OTHER_COST_NOT_EXIST_EXCEPTION_MESSAGE = "其他成本记录不存在";
    // 成本调整错误
    public static final int COST_PARAM_EXCEPTION_CODE = 721;
    public static final String COST_PARAM_EXCEPTION_MESSAGE = "成本调整缺少或存在冲突参数";
    public static final int COST_ADJUST_EXCEPTION_CODE = 722;
    public static final String COST_ADJUST_EXCEPTION_MESSAGE = "成本调整失败";
    // 系统设置失败
    public static final int SYSTEM_SETTING_EXCEPTION_CODE = 801;
    public static final String SYSTEM_SETTING_IMAGE_EXCEPTION_MESSAGE = "图片地址设置失败";
    // 文件上传错误
    public static final int FILE_UPLOAD_EXCEPTION_CODE = 811;
    public static final String FILE_UPLOAD_EXCEPTION_MESSAGE = "文件保持失败";
    public static final int FILE_TYPE_EXCEPTION_CODE = 812;
    public static final String FILE_TYPE_EXCEPTION_MESSAGE = "文件类型不支持";
    public static final int FILE_NOT_FOUND_EXCEPTION_CODE = 813;
    public static final String FILE_NOT_FOUND_EXCEPTION_MESSAGE = "文件不存在或无法读取";
    public static final int FILE_PATH_EXCEPTION_CODE = 814;
    public static final String FILE_PATH_EXCEPTION_MESSAGE = "文件路径格式错误";
}
